package com.lancer.backlog.controller;

import com.lancer.backlog.beans.PathDemandResult;
import com.lancer.backlog.beans.QueryPathDemand;
import com.lancer.backlog.common.impl.ResponseResult;
import com.lancer.backlog.service.DemandManageService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author jq
 * @email 3601704681@qq.com
 * @date Created in  2020/8/25  15:59
 * @description 需求列表
 */
@RestController
@RequestMapping(value = "/app")
public class DemandManageController {
    private final Logger log = LoggerFactory.getLogger(UserController.class);

    @Autowired
    private DemandManageService demandManageService;
    /**
     * 获取path上的需求列表
     *
     * @return
     */
    @RequestMapping("/list")
    @ResponseResult
    public PathDemandResult getPathDemand(@RequestBody QueryPathDemand queryPathDemand){
        return demandManageService.getPathDemand(queryPathDemand);
    }

}
